package text;

import bean.Banji;
import bean.Student;
import service.BanjiService;
import service.BanjiServiceImpl;

import java.util.List;

public class BanjiServiceText {

    public static void main(String[] args) {

        BanjiService banjiService = new BanjiServiceImpl ();
//        //增加学生的测试
//        int i = banjiService.BanjiAddService (new Banji ( "五年一班", "5", "关羽", "哒哒哒哒", "30"));
//        if (i > 0) {
//            System.out.println ("添加班级信息成功");
//        } else {
//            System.out.println ("添加班级信息失败");
//        }

        //查询测试
        List<Student> list = banjiService.BanjiFindService ("0");
        if (list != null) {
            System.out.println ("查找班级信息成功");
            System.out.println (list);
        } else {
            System.out.println ("查找班级信息失败");
        }
    }
}
